package com.only4play.system.mapper;

/**
 * @author hinzzz www.hinzzz.cn 157957329@qq.com
 * 2024-02-29
 */
import com.only4play.common.mapper.DateMapper;
import com.only4play.productcenter.api.template.request.TemplateCreateRequest;
import com.only4play.system.req.ProductCreateReq;
import com.only4play.system.req.WorkOrderCreateReq;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = DateMapper.class)
public interface ProductMapper {

  ProductMapper INSTANCE = Mappers.getMapper(ProductMapper.class);


  TemplateCreateRequest productCreateReq2Template(ProductCreateReq req);

  TemplateCreateRequest workOrderCreateReq2Template(WorkOrderCreateReq req);
}
